package demo.cb;

public class QueryRateDetailCmp {

    private FeRateDao feRateDao;


    public QueryRateDetailCmp() {
        feRateDao = new FeRateDao();
    }

    public QueryRateDetailRetBean queryRateDetail(QueryRateDetailReqBean reqBean, String userId) {
        FeRateBean feRateBean = feRateDao.queryFeRateBeanVo(userId);
        if (feRateBean == null) {
            throw new RuntimeException("ERROR 123");
        }
        QueryRateDetailRetBean queryRateDetailRetBean = new QueryRateDetailRetBean();
        queryRateDetailRetBean.setName(feRateBean.getName());
        queryRateDetailRetBean.setUserId(userId);
        return queryRateDetailRetBean;
    }

}
